package com.dw.etl.core.schedu.job;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import java.util.concurrent.TimeUnit;

/**
 * Created by liujunlei on 2021/6/7.
 */
@Component
public class JobHandler {

    /**
     * 1、简单任务示例（Bean模式）
     */
    @XxlJob("simpleJobHandler")
    public void simpleJobHandler() throws Exception {
        System.out.println("simpleJobHandler被调用");
        // default success
    }
}
